package tianrun.ziguan.api.calculate.config.dto.request.sync;

import tianrun.ziguan.api.calculate.config.utils.CollectionUtil;

import java.util.Collection;

public class Sync<T> {

    private Collection<T> sources;
    private Collection<T> targets;

    public Collection<T> getSources() {
        return sources;
    }

    public void setSources(Collection<T> sources) {
        this.sources = sources;
    }

    public Collection<T> getTargets() {
        return targets;
    }

    public void setTargets(Collection<T> targets) {
        this.targets = targets;
    }

    public boolean isEmpty() {
        return CollectionUtil.isEmpty(sources);
    }
}
